package net.shopxx.service.impl;

import javax.annotation.Resource;

import net.shopxx.dao.MemberShiliDao;
import net.shopxx.entity.MemberRank;
import net.shopxx.entity.MemberShili;
import net.shopxx.service.MemberShiliService;

import org.springframework.stereotype.Service;
import org.springmodules.cache.annotations.CacheFlush;

/**
 * Service实现类 - 会员视力档案分类
 * ============================================================================
 */

@Service
public class MemberShiliServiceImpl extends BaseServiceImpl<MemberShili, String> implements MemberShiliService {
	
	@Resource
	MemberShiliDao memberShiliDao;

	@Resource
	public void setBaseDao(MemberShiliDao memberShiliDao) {
		super.setBaseDao(memberShiliDao);
	}
	
	
	@Override
	@CacheFlush(modelId = "flushing")
	public void delete(MemberShili memberShili) {
		memberShiliDao.delete(memberShili);
	}

	@Override
	@CacheFlush(modelId = "flushing")
	public void delete(String id) {
		memberShiliDao.delete(id);
	}

	@Override
	@CacheFlush(modelId = "flushing")
	public void delete(String[] ids) {
		memberShiliDao.delete(ids);
	}

	@Override
	@CacheFlush(modelId = "flushing")
	public String save(MemberShili memberShili) {
		return memberShiliDao.save(memberShili);
	}

	@Override
	@CacheFlush(modelId = "flushing")
	public void update(MemberShili memberShili) {
		memberShiliDao.update(memberShili);
	}

}